<% var pageLevelJS = { %>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"sys"
		,modelName:"令牌"
		,modelFlag:"token"
		,key:"${sessionId}"
		,addDivId:'add-dialog'
		,canDelete:false
		,canRemove:false
		,canAdd:false
		}
window.global.hasInstance = ${sysFlags.~size>1};
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/token/index.js"></script>
<%};%> 
<% var form = { %>
<form id="searchForm" action="${ctx}/sys/token/query?_style=bs&${session._para}" class="form-inline" role="form">
	  <div class="form-group  ">
	     <label for="email">令牌:</label>
        <input type="text"  class="validate[maxSize[50]] form-control" name="nameStr" placeholder="令牌">
	  </div> 
	   <div class="form-group">
	     <label for="startDate">生成日期:</label>
	     <input  style="height:32px;" class="Wdate form-control" type="text" name="createDtSt" id="startDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endDate\')}'})"    placeholder="请输入开始日期"/>
	     <label for="endDate">至</label>
	     <input  style="height:32px;" class="Wdate form-control" type="text" name="createDtEd" id="endDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startDate\')}'})"    placeholder="请输入结束日期"/>
	  </div>
</form>
<%};%> 

<% var toolbar = { %>
<div class="pull-right">
	<button type="button" class="btn btn-info btn-xs tableBtn" title="控制非核心列">
		<i class="ace-icon fa bigger-120">隐藏</i>
	</button>
</div>
<%};%> 

<% var ths = { %>
     <th w_num="total_line" w_class="center hidden-480" width="50px">序号</th>
     <th w_index="nameStr" w_tip="true">令牌</th>
     <th w_index="categoryName" w_class="hidden-480" >类别</th>
     <th w_index="useDt" w_class="hidden-480" w_tip="true" width="130px">使用时间</th>
     <th w_index="startDt" w_class="hidden-480" w_tip="true" width="130px">有效期开始时间</th>
     <th w_index="endDt" w_class="hidden-480" w_tip="true" width="130px">有效期结束时间</th>
     <th w_render="operateFunc" class="nodata width-480-ctr" w_index="id" w="120px" width="120px">操作</th>
<%};%> 
<% var layoutParas =
{"title":"",table:"searchTable",tableClass:"","ths":ths,"toolbar":toolbar,"form":form,"pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicGridTemplate.html", layoutParas){ %>
	
<%} %>
